package org.baeta.business;

import java.io.IOException;
import java.util.Properties;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * Description
 *
 * @author <a href="mailto:rui.baeta@gmail.com">Rui Baeta</a>
 * @version 26-Sep-2012 23:11:24
 */
public class AppProperties extends Properties
{
    private static final Log LOG = LogFactory.getLog(AppProperties.class);

    private static AppProperties instance = new AppProperties();

    public static AppProperties getInstance()
    {
        return instance;
    }

    private AppProperties()
    {
        try
        {
            this.load(getClass().getResourceAsStream("/app.properties"));
        }
        catch (IOException e)
        {
            throw new ExceptionInInitializerError(e);
        }
    }

}
